﻿using Credinka.Ayni.SEA.AD;
using Credinka.Ayni.SEA.EN;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;

namespace Credinka.Ayni.SEA.RN
{
    public class rnLog : rnGeneral
    {
        adLog oadLog;

        public int Registrar(enLog poenLog)
        {
            int N = -1;
            using (SqlConnection con = new SqlConnection(sConexionGeneral))
            {
                try
                {
                    con.Open();
                    oadLog = new adLog(con);
                    N = oadLog.fRegistrar(poenLog);
                    con.Close();
                }
                catch (SqlException ex)
                {
                }
            }
            
            return (N);
        }
    }
}
